class Student:
    name = None
    gender = None
    nationality = None
    __current = None #私有成员 (以__开头)

#成员变量
    def sya_hi(self):
        print(f"学生姓名:{self.name}")

    def function1(self,msg):
        print(msg," ",self.name)

#构造方法
    def __init__(self,name,gender,nationality):
        self.name = name
        self.gender = gender
        self.nationality = nationality
        print("执行了构造方法")

    def __privatefunction(self):
        print("执行私有方法")



# stu_1 = Student()
# stu_1.name = "liu"
# stu_1.gender = "男"
# stu_1.nationality = "美国"

stu_2 = Student("happy","男","中国")

# print(stu_1.name)
# stu_1.function1("hello world")

class Clock:
    id = None
    price = None

    def ring(self):
        import winsound
        winsound.Beep(2000,3000)
clock_1 = Clock()

clock_1.ring()